/*
 * Copyright (c) 2020. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 * Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
 * Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
 * Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus.
 * Vestibulum commodo. Ut rhoncus gravida arcu.
 */

package com.gehj.uhttp.entity;

import com.contrarywind.interfaces.IPickerViewData;
/**
  * PickerView的实体类 ：直接使用gson可以解决；
  * @ClassName:      GoodsType
  * @Description:
  * @Author:         gehj
  * @CreateDate:     2020/12/10 10:28
 */

public class GoodsType implements IPickerViewData {
    /**
     * id : 1
     * productType : 1
     * productUnit : 积分/L
     * typeName : 柴油
     */

    private String id;
    private int productType;
    private String productUnit;
    private String typeName;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getProductType() {
        return productType;
    }

    public void setProductType(int productType) {
        this.productType = productType;
    }

    public String getProductUnit() {
        return productUnit;
    }

    public void setProductUnit(String productUnit) {
        this.productUnit = productUnit;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    @Override
    public String getPickerViewText() {
        return typeName;
    }
}
